package com.bdqn.design;

import com.bdqn.design.proxy.Buyer;
import com.bdqn.design.proxy.IntermediaryProxyBuyerImpl;
import com.bdqn.design.proxy.RealBuyer;

/**
 * Test04StaticProxyImpl 测试静态代理（使用接口方式）
 *
 * @author LILIBO
 * @since 2024/7/6
 */
public class Test04StaticProxyImpl {

    public static void main(String[] args) {
        // 房产中介带着想买房的真实客户去看房
        Buyer buyer = new IntermediaryProxyBuyerImpl(new RealBuyer());
        String result = buyer.havealook();
        System.out.println(result);
    }

}
